package com.design.pattern.structural.decorator.v2;

/**
 * 认认真真写写
 * User: RenQiQiqng
 * Date: 2019/3/10-Time: 17:40
 * Description:
 */
public class EggDecorator extends AbstractDecorator {
    @Override
    protected void doSomething() {

    }

    public EggDecorator(ABattercake aBattercake) {
        super(aBattercake);
    }

    @Override
    protected String getDesc() {
        return super.getDesc() + "加一个蛋";
    }

    @Override
    protected int cost() {
        return super.cost() + 1;
    }
}
